package com.example.ex5_springboot.services;

import com.example.ex5_springboot.mappers.AdminGetPersonMapper;
import com.example.ex5_springboot.pojo.AdminGetPerson;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AdminGetPersonServiceImpl implements AdminGetPersonService{
    @Autowired
    AdminGetPersonMapper adminGetPersonMapper;

    @Override
    public List<AdminGetPerson> getAllPerson() {
        return adminGetPersonMapper.getAllPerson();
    }

    @Override
    public List<AdminGetPerson> getPersonByName(int id) {
        return adminGetPersonMapper.getPersonByName(id);
    }

    @Override
    public int insertNewRegister(int user_id,String college,String name,String health,double temperature,String outside,String work,String remark){
        return adminGetPersonMapper.insertNewRegister(user_id,college,name,health,temperature,outside,work,remark);
    }
}
